<template>
<el-form :inline="true" :model="searchForm" style="float: left">
  <el-form-item label="角色名称">
    <el-input v-model="searchForm.roleName" placeholder="角色名称"></el-input>
  </el-form-item>
  <el-form-item>
    <el-button type="primary" @click="onSearch">查询</el-button>
  </el-form-item>
</el-form>
</template>
<script>
  export default {
    methods: {
      onSearch() {
        this.$emit('search', this.searchForm);
      }
    },
    data() {
      return {
        searchForm: {
          roleName: '',
        }
      }
    },
  }
</script>